<?php

/**
 * @package    JWPBlog
 * @author David Neimeyer davidneimeyer@gmail.com
 * administrator/components/com_bookstore/admin.bookstore.php
 * @link http://indie-bookstore.googlecode.com/
 * @license    GNU/GPL
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport('joomla.application.component.controller');

/**
 * JWPBlog Component Controller
 * 
 * @package		JWPBlog
 */
class JWPBlogControllerEdit extends JController
{
		
	function __construct()
	{
		parent::__construct();
		$this->profiler =& JProfiler::getInstance( 'Application' );
		$this->reg =& JRegistry::getInstance('mojo');
		$this->reg->setValue('profiler.handle',$_MOJO_PROFILER);		
		$this->reg->setValue('config.admin_path',JPATH_SITE.DS.'components'.DS.'com_mojo'.DS.'wp-admin');	
		JRequest::setVar('view','edit');
		$this->getModel('edit');
		//$this->registerDefaultTask('display');		
	}
		
	function display() {
		var_dump('editcontroller');
		global $mainframe;
		//require_once($this->reg->getValue('config.admin_path').DS.'edit.php');
		//require_once($this->reg->getValue('config.admin_path').DS.'index.php');
		//$view = $this->getView('Edit');
		//var_dump($view);
			
		parent::display();
	}
	
	function edit(){
		$this->display();
	}
}
?>